import api from '../utils/api.js'

// 获取全部订单
export const getOrderList = (data) => {
	return api.request({
		url: '/queryOrdersByPrarm',
		method: 'post',
		data
	})
}
// 获取全部订单
export const queryOrdersByPrarmSt = (data) => {
	return api.request({
		url: '/order/queryOrdersByPrarmSt',
		method: 'post',
		data
	})
}
// 删除订单

// 查询所有收获地址
export const getAllAdressList = (data) => {
	return api.request({
		url: '/address/selectAll',
		method: 'post',
		data
	})
}
// 新增收获地址
export const addNewsAddressNews = (data) => {
	return api.request({
		url: '/address/saveAddress',
		method: 'post',
		data
	})
}
// 更新收获地址
export const uploadAddress = (data) => {
	return api.request({
		url: '/address/updateAddress',
		method: 'post',
		data
	})
}
// 删除收获地址
export const deleteAddress = (data) => {
	return api.request({
		url: '/address/deleteAddress',
		method: 'get',
		data
	})
}